package com.avic.rong.questionOrAnswer;

import android.app.Activity;
import android.app.ProgressDialog;




/**
 */

public class UmDialog {

    private ProgressDialog progressDialog;

    public void showProgressDialog(Activity mAct, int msg) {
        if (progressDialog == null) {
            progressDialog = RequestProgressDialogWrap.createProgressDialog(mAct, msg, true);
            if (progressDialog != null) {
                progressDialog.setCanceledOnTouchOutside(true);
            }

        }
        RequestProgressDialogWrap.showProgressDialog(progressDialog);
    }

    public void hideProgressDialog() {
        if (progressDialog != null) {
            RequestProgressDialogWrap.dismissProgressDialog(progressDialog);
            progressDialog = null;
        }
    }

}
